// 引入get和post
import { get, post } from './http'

// 登录后台管理系统
export const login = data => post('/api/user/login', data)
// 获取账号列表
export const getAccountList = data => get('/api/user/getUserList', data)
// 添加账户
export const addUser = data => post('/api/user/addUser', data)
// 修改账号状态
export const lockUser = data => post('/api/user/lockUser', data)
// 获取字典列表
export const getDictionary = data => get('/api/dictionary/getDictionary', data)
// 新增字典数据
export const addDictionary = data => post('/api/dictionary/addDictionary', data)
// 删除字典数据
export const delDictionary = data => post('/api/dictionary/delDictionary', data)
// 抓取特定字典类型数据
export const getDicType = data => get('/api/dictionary/getDicType', data)
// 获取教练数据
export const getCoach = data => get('/api/coach/getCoach', data)
// 新增教练数据
export const addCoach = data => post('/api/coach/addCoach', data)
// 获取场馆数据
export const getVenue = data => get('/api/venue/getAllVenue', data)
// 新增场馆数据
export const addVenue = data => post('/api/venue/addVenue', data)
// 获取课程数据
export const getClass = data => get('/api/class/getBackClass', data)
// 新增课程数据
export const addClass = data => post('/api/class/addClass', data)

/* App接口 */
// 获取app全部轮播图
export const getAllCarousel = data => get('/api/carousel/getAllCarousel', data)
// 添加app轮播图
export const addCarousel = data => post('/api/carousel/addCarousel', data)
// 修改app轮播图
export const lockCarousel = data => post('/api/carousel/lockCarousel', data)
// 获取app账号列表
export const getAppUserList = data => get('/api/app_user/getAppUserList', data)
// 获取app账号列表
export const lockAppUser = data => post('/api/app_user/lockAppUser', data)
// 获取app用户反馈信息
export const getOpinion = data => get('/api/opinion/getOpinion', data)
// 获取app公告信息
export const getNotice = data => get('/api/notice/getNotice', data)
// 发布app公告信息
export const addNotice = data => post('/api/notice/addNotice', data)

/* 大屏接口 */
// 获取课程分享数信息
export const getBigDataClass = data => get('/api/class/getBigDataClass', data)
// 获取教练评价信息
export const getBigDataCoach = data => get('/api/coach/getBigDataCoach', data)
// 获取课程预约信息
export const orderBigClass = data => get('/api/class/orderBigClass', data)
// 获取课程预约信息
export const mountBigDataClass = data => get('/api/class/mountBigDataClass', data)
